package com.moonshineproject.commands
{
	import com.moonshineproject.IDEModel;
	import com.moonshineproject.editor.BasicTextEditor;
	import com.moonshineproject.view.IContentWindow;
	import com.moonshineproject.view.notifier.ActionNotifier;
	
	import flash.events.Event;
	
	public class SaveFileCommand implements ICommand
	{
		public function execute(event:Event):void {
			
			ActionNotifier.getInstance().notify("Saving");
			
			var model:IDEModel = IDEModel.getInstance();
			var editor:IContentWindow = model.activeEditor as IContentWindow;
			
			editor.save();
		}

	}
}